﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XWord.Fundamental.Domain;
using NHibernateUnitOfWork;

namespace ConsoleApplication1
{
    public class ClozeArticleTest
    {
        public static void Test1()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2006, 6, 22);

            rac.Content = @"    Do you wake up every day feeling too tired, or even upset? If so, then a new alarm clock could be just for you.
The clock, called SleepSmart, measures your sleep cycle, and waits __67__ you to be in your lightest phase of sleep __68__ rousing you. Its makers say that should __69__ you wake up feeling refreshed every morning.
As you sleep you pass __70__ a sequence of sleep states—light sleep, deep sleep and REM (rapid eye movement) sleep—that __71__ approximately every 90 minutes. The point in that cycle at which you wake can __72__ how you feel later, and may __73__ have a greater impact than how much or little you have slept. Being roused during a light phase __74__ you are more likely to wake up energetic.
SleepSmart __75__ the distinct pattern of brain waves __76__ during each phase of sleep, via a headband equipped __77__ electrodes (电极) and a microprocessor. This measures the electrical activity of the wearer’s brain, in much the __78__ way as some machines used for medical and research __79__, and communicates wirelessly with a clock unit near the bed. You __80__ the clock with the latest time at __81__ you want to be wakened, and it __82__ duly (适时地) wakes you during the last light sleep phase before that.
The __83__ was invented by a group of students at Brown University in Rhode Island __84__ a friend complained of waking up tired and performing poorly on a test. “__85__ sleep-deprived people ourselves, we started thinking of __86__ to do about it,” says Eric Shashoua, a recent college graduate and now chief executive officer of Axon Sleep Research Laboratories, a company created by the students to develop their idea.
";
            rac.ArticleType = 2;
            rac.CompleteMinute = 15;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }
        public static void Test2()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2006, 12, 22);

            rac.Content = @"    Language is the most astonishing behavior in the animal kingdom. It is the species-typical behavior that sets humans completely __67__ from all other animals. Language is a means of communication, __68__ it is much more than that. Many animals can __69__. The dance of the honeybee communicates the location of flowers __70__ other members of the hive (蜂群). But human language permits communication about anything, __71__ things like unicorn (独角兽) that have never existed. The key __72__ in the fact that the units of meaning, words, can be __73__ together in different ways, according to __74__, to communicate different meanings.
Language is the most important learning we do. Nothing __75__ humans so much as our ability to communicate abstract thoughts, __76__ about the universe, the mind, love, dreams, or ordering a drink. It is an immensely complex __77__ that we take for granted. Indeed, we are not aware of most __78__ of our speech and understanding. Consider what happens when one person is speaking to __79__. The speaker has to translate thoughts into __80__ language. Brain imaging studies suggest that the time from thoughts to the __81__ of speech is extremely fast, only 0.04 seconds! The listener must hear the sounds to __82__ out what the speaker means. He must use the sounds of speech to __83__ the words spoken, understand the pattern of __84__ of the words (sentences), and finally __85__ the meaning. This takes somewhat longer, a minimum of about 0.5 seconds. But __86__ started, it is of course a continuous process.
";
            rac.ArticleType = 2;
            rac.CompleteMinute = 15;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }
        public static void Test3()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2007, 6, 22);

            rac.Content = @"   An earthquake hit Kashmir on Oct. 8, 2005. it took some 75,000 lives, __67__ 130,000 and left nearly 3.5 million without food, jobs or homes. __68__ overnight, scores of tent villages bloomed __69__ the region, tended by international aid organizations, military __70__ and aid groups working day and night to shelter the survivors before winter set __71__.
Mercifully, the season was mild. But with the __72__ of spring the refugees will be moved again. Camps that __73__ health care, food and shelter for 150,000 survivors have begun to close as they were __74__ intended to be permanent.
For most of the refugees, the thought of going back brings __75__ emotions. The past six months have been difficult. Families of __76__ many as 10 people have had to shelter __77__ a single tent and share cookstoves and bathing __78__ with neighbors. “They are looking forward to the clean water of their rivers,” officials say. “They are __79__ of free fresh fruit. They want to get back to their herds and start __80__ again.” But most will be returning to __81__ but heaps of ruins. In many villages, electrical __82__ have not been repaired, nor have roads. Aid workers __83__ that it will take years to rebuild what the earthquake took __84__. And for the thousands of survivors, the __85__ will never be complete.
Yet the survivors have to start somewhere. New homes can be built __86__ the stones, bricks and beams of old ones. Spring is coming and it is a good time to start again.
";
            rac.ArticleType = 2;
            rac.CompleteMinute = 15;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test4()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2007, 12, 22);

            rac.Content = @"    One factor that can influence consumers is their mood state. Mood may be defined  67  a temporary and mild positive or negative feeling that is generalize and not tied 68  any particular circumstance. Moods should be 69  form emotions which are usually more intense, 70  to specific circumstances, and often conscious. 71  one sense, the effect of a consumer’s mood can be thought of in 72  the same way as can our reactions to the 73  of our friends---when our friends are happy and “ up”, that tends to influence us positively, 74  when they are “down”, that can have a 75  impact on us. Similarly, consumers operating under a 76  mood state tend to react to stimuli (刺激因素) in a direction 77  with that mood state. Thus, for example, we should expect to see 78  in a positive mood state evaluate products in more of a 79  manner than they would when not in such a state. 80 , mood states appear capable of 81  a consumer’s memory.
Moods appear to be 82  influenced by marketing techniques. For example, the rhythm, pitch, and 83  of music has been shown to influence behavior such as the 84  of time spent in supermarkets or 85  to purchase products. In addition, advertising can influence consumers’ moods which, in 86 , are capable of influencing consumers’ reactions to products.
";
            rac.ArticleType = 2;
            rac.CompleteMinute = 15;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test5()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2008, 6, 22);

            rac.Content = @"   Universities are institutions that teach a wind variety of subjects at advanced levels. They also carry out research work aimed __67__ extending man's knowledge of these subjects. The emphasis given to each of these functions __68__ from university to university, according to the views of the people in __69__ and according to the resources available. The smaller and newer universities do not __70__ the staff or equipment to carry out the __71__ research projects possible in larger institutions. __72__ most experts agree that some research activity is __73__ to keep the staff and their students in __74__ with the latest developments in their subjects. Most students attend a university mainly to __75__ the knowledge needed for their chosen __76__. Educationists believe that this aim should not be the __77__ one. Universities have always aimed to produce men and women __78__ judgment and wisdom as well as knowledge. For this reason. they __79__ students to meet others with differing __80__ and to read widely to  __81__ their understanding in many fields of study. __82__ a secondary school course, a student should be interested enough in a subject to enjoy gaining knowledge for its own __83__. He should be prepared to __84__ sacrifices to study his chosen __85__ in depth. He should have an ambition to make some __86__ contribution to man's knowledge.";
            rac.ArticleType = 2;
            rac.CompleteMinute = 15;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test6()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2008, 12, 22);

            rac.Content = @"    Playing organized sports is such a common experience in the United States that many children and teenagers take them for granted. This is especially true_67___children from families and communities that have the resources needed to organize and_68_sports programs and make sure that there is easy__69__to  participation opportunities. Children in low-income families and poor communities are__70__likely to take organized youth sports for granted because they often__71__the resources needed to pay for participation__72__equipment,and transportation to practices and games__73__their communities do not have resources to build and__74__sports fields and facilities .
    Organized youth sports__75__appeared during the early 20th century in the United States and other wealthy nations . They were originally developed__76__some educator and developmental experts__77__that the behavior and character of children were__78__influenced by their social surroundings and everyday experiences.This__79__many people to believe that if you could organize the experiences of children in__80__ways,you could influence the kinds of adults that those children would become.
    This belief that the social__81__inluenced a person’s overall development was very__82__to people interested in progress and reform in the United States__83__the beginning of the 20th century.It caused them to think about__84__they might control the experiences of children to__85__responsible and productive adults. They believed strongly that democracy depended on responsibility and that a__86__capitalist economy depended on the productivity of works.
";
            rac.ArticleType = 2;
            rac.CompleteMinute = 15;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test7()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2009, 6, 22);

            rac.Content = @"    Kimiyuki Suda should be a perfect customer for Japan’s car-makers. He’s young, successful executive at an Internet-services company in Tokyo and has plenty of disposable __67__. He used to own Toyota’s Hilux Surf, a sport utility vehicle. But now he uses __68__ subways and trains. “It’s not inconvenient at all,” he says. __69__, “having a car is so 20th century.”
　　Suda reflects a worrisome __70__ in Japan; the automobile is losing its emotional appeal, __71__ among the young, who prefer to spend their money on the latest electronic devices. __72__ mini-cars and luxury foreign brands are still popular, everything in between is __73__. Last year sales fell 6.7 percent, 7.6 percent __74__ you don’t count the mini-car market. There have been __75__ one-year drops in other nations: sales in Germany fell 9 percent in 2007 __76__ a tax increase. But experts say Japan is __77__ in that sales have been decreasing steadily __78__ time. Since 1990, yearly new-car sales have fallen from 7.8 million to 5.4 million units in 2007.
　　Alarmed by this state of __79__, the Japan Automobile Manufacturers Association （JAMA） __80__ a comprehensive study of the market in 2006. It found that a __81__ wealth gap, demographic （人口结构） changes and __82__ lack of interest in cars led Japanese to hold their __83__ longer, replace their cars with smaller ones __84__ give up car ownership altogether. JAMA __85__ a further sales decline of 1.2 percent this year. Some experts believe that if the trend continues for much longer, further consolidation （合并）in the automotive sector is __86__.
";
            rac.ArticleType = 2;
            rac.CompleteMinute = 15;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test8()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2009, 12, 22);

            rac.Content = @"    Older people must be given more chances to learn if they are to contribute to society rather than be a financial burden, according to a new study on population plublished recently.
The current approach which 67 on younger people and on skills for employment is not 68 to meet the challenges of demograghic (人口结构的) change, it says. Only 1% of the education budget is 69 spent on the oldest third of the population.
The 70 include the fact that most people can expect to spend a third of their lives in 71, that there are now more people over 59 than under 16 and that 11.3 million people are 72 state pension age.
“73 needs to continue throughout life. Our historic concentration of policy attention and resources 74 young people cannot meet the new 75.” says the report’s author, Professor Stephten McNair.
The major 76 of our education budget is spent on people below the age of 25. 77 people are changing their jobs, 78, partners and lifestyles more often than 79, they need opportunities to learn at every age. 80, some people are starting new careers in their 50s and later.
People need opportunities to make a “midlife review” to 81 to the later stages fo employed life, and to plan for the transition (过渡) 82 retirement, which may now happen 83 at any point from 50 to over 90, says McNair.
And there should be more money 84 to support people in establishing a 85 of identity and finding constructive 86 for the “third age”,  the 20 or more years they will spend in healthy retired life.
";
            rac.ArticleType = 2;
            rac.CompleteMinute = 15;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }
    }
}
